<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
BufferReader (Metadata-Extractor - JavaDoc - An Open Source Java Library for Image File Metadata)
</TITLE>

<META NAME="keywords" CONTENT="com.drew.lang.BufferReader interface">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="BufferReader (Metadata-Extractor - JavaDoc - An Open Source Java Library for Image File Metadata)";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/BufferReader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<a href='http://www.drewnoakes.com/code/exif/' title='Go to the project home page.'><img src='http://metadata-extractor.googlecode.com/git/Resources/metadata-extractor-logo-131x30.png' border=0 alt='Metadata Extractor Logo'></a></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/drew/lang/ByteArrayReader.html" title="class in com.drew.lang"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/drew/lang/BufferReader.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="BufferReader.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.drew.lang</FONT>
<BR>
Interface BufferReader</H2>
<DL>
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../com/drew/lang/ByteArrayReader.html" title="class in com.drew.lang">ByteArrayReader</A>, <A HREF="../../../com/drew/lang/RandomAccessFileReader.html" title="class in com.drew.lang">RandomAccessFileReader</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public interface <B>BufferReader</B></DL>
</PRE>

<P>
<HR>

<P>

<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getBytes(int, int)">getBytes</A></B>(int&nbsp;index,
         int&nbsp;count)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getDouble64(int)">getDouble64</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getFloat32(int)">getFloat32</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;short</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getInt16(int)">getInt16</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a signed 16-bit int calculated from two bytes of data at the specified index (MSB, LSB).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getInt32(int)">getInt32</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a signed 32-bit integer from four bytes of data at the specified index the buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getInt64(int)">getInt64</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a signed 64-bit integer from the buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;byte</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getInt8(int)">getInt8</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a signed 8-bit int calculated from one byte of data at the specified index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getLength()">getLength</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the length of the buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getNullTerminatedString(int, int)">getNullTerminatedString</A></B>(int&nbsp;index,
                        int&nbsp;maxLengthBytes)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a String from the _data buffer starting at the specified index,
 and ending where <code>byte=='\0'</code> or where <code>length==maxLength</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getS15Fixed16(int)">getS15Fixed16</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getString(int, int)">getString</A></B>(int&nbsp;index,
          int&nbsp;bytesRequested)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getString(int, int, java.lang.String)">getString</A></B>(int&nbsp;index,
          int&nbsp;bytesRequested,
          java.lang.String&nbsp;charset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getUInt16(int)">getUInt16</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an unsigned 16-bit int calculated from two bytes of data at the specified index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getUInt32(int)">getUInt32</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a 32-bit unsigned integer from the buffer, returning it as a long.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;short</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#getUInt8(int)">getUInt8</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an unsigned 8-bit int calculated from one byte of data at the specified index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#isMotorolaByteOrder()">isMotorolaByteOrder</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the endianness of this reader.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/drew/lang/BufferReader.html#setMotorolaByteOrder(boolean)">setMotorolaByteOrder</A></B>(boolean&nbsp;motorolaByteOrder)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the endianness of this reader.</TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="getLength()"><!-- --></A><H3>
getLength</H3>
<PRE>
long <B>getLength</B>()</PRE>
<DL>
<DD>Returns the length of the buffer.  This value represents the total number of bytes in the underlying source.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>The number of bytes in the buffer.</DL>
</DD>
</DL>
<HR>

<A NAME="setMotorolaByteOrder(boolean)"><!-- --></A><H3>
setMotorolaByteOrder</H3>
<PRE>
void <B>setMotorolaByteOrder</B>(boolean&nbsp;motorolaByteOrder)</PRE>
<DL>
<DD>Sets the endianness of this reader.
 <ul>
 <li><code>true</code> for Motorola (or big) endianness</li>
 <li><code>false</code> for Intel (or little) endianness</li>
 </ul>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>motorolaByteOrder</CODE> - <code>true</code> for motorola/big endian, <code>false</code> for intel/little endian</DL>
</DD>
</DL>
<HR>

<A NAME="isMotorolaByteOrder()"><!-- --></A><H3>
isMotorolaByteOrder</H3>
<PRE>
boolean <B>isMotorolaByteOrder</B>()</PRE>
<DL>
<DD>Gets the endianness of this reader.
 <ul>
 <li><code>true</code> for Motorola (or big) endianness</li>
 <li><code>false</code> for Intel (or little) endianness</li>
 </ul>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getUInt8(int)"><!-- --></A><H3>
getUInt8</H3>
<PRE>
short <B>getUInt8</B>(int&nbsp;index)
               throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD>Returns an unsigned 8-bit int calculated from one byte of data at the specified index.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - position within the data buffer to read byte
<DT><B>Returns:</B><DD>the 8 bit int value, between 0 and 255
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE> - the buffer does not contain enough bytes to service the request, or index is negative</DL>
</DD>
</DL>
<HR>

<A NAME="getInt8(int)"><!-- --></A><H3>
getInt8</H3>
<PRE>
byte <B>getInt8</B>(int&nbsp;index)
             throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD>Returns a signed 8-bit int calculated from one byte of data at the specified index.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - position within the data buffer to read byte
<DT><B>Returns:</B><DD>the 8 bit int value, between 0x00 and 0xFF
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE> - the buffer does not contain enough bytes to service the request, or index is negative</DL>
</DD>
</DL>
<HR>

<A NAME="getUInt16(int)"><!-- --></A><H3>
getUInt16</H3>
<PRE>
int <B>getUInt16</B>(int&nbsp;index)
              throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD>Returns an unsigned 16-bit int calculated from two bytes of data at the specified index.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - position within the data buffer to read first byte
<DT><B>Returns:</B><DD>the 16 bit int value, between 0x0000 and 0xFFFF
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE> - the buffer does not contain enough bytes to service the request, or index is negative</DL>
</DD>
</DL>
<HR>

<A NAME="getInt16(int)"><!-- --></A><H3>
getInt16</H3>
<PRE>
short <B>getInt16</B>(int&nbsp;index)
               throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD>Returns a signed 16-bit int calculated from two bytes of data at the specified index (MSB, LSB).
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - position within the data buffer to read first byte
<DT><B>Returns:</B><DD>the 16 bit int value, between 0x0000 and 0xFFFF
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE> - the buffer does not contain enough bytes to service the request, or index is negative</DL>
</DD>
</DL>
<HR>

<A NAME="getUInt32(int)"><!-- --></A><H3>
getUInt32</H3>
<PRE>
long <B>getUInt32</B>(int&nbsp;index)
               throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD>Get a 32-bit unsigned integer from the buffer, returning it as a long.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - position within the data buffer to read first byte
<DT><B>Returns:</B><DD>the unsigned 32-bit int value as a long, between 0x00000000 and 0xFFFFFFFF
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE> - the buffer does not contain enough bytes to service the request, or index is negative</DL>
</DD>
</DL>
<HR>

<A NAME="getInt32(int)"><!-- --></A><H3>
getInt32</H3>
<PRE>
int <B>getInt32</B>(int&nbsp;index)
             throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD>Returns a signed 32-bit integer from four bytes of data at the specified index the buffer.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - position within the data buffer to read first byte
<DT><B>Returns:</B><DD>the signed 32 bit int value, between 0x00000000 and 0xFFFFFFFF
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE> - the buffer does not contain enough bytes to service the request, or index is negative</DL>
</DD>
</DL>
<HR>

<A NAME="getInt64(int)"><!-- --></A><H3>
getInt64</H3>
<PRE>
long <B>getInt64</B>(int&nbsp;index)
              throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD>Get a signed 64-bit integer from the buffer.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - position within the data buffer to read first byte
<DT><B>Returns:</B><DD>the 64 bit int value, between 0x0000000000000000 and 0xFFFFFFFFFFFFFFFF
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE> - the buffer does not contain enough bytes to service the request, or index is negative</DL>
</DD>
</DL>
<HR>

<A NAME="getS15Fixed16(int)"><!-- --></A><H3>
getS15Fixed16</H3>
<PRE>
float <B>getS15Fixed16</B>(int&nbsp;index)
                    throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getFloat32(int)"><!-- --></A><H3>
getFloat32</H3>
<PRE>
float <B>getFloat32</B>(int&nbsp;index)
                 throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getDouble64(int)"><!-- --></A><H3>
getDouble64</H3>
<PRE>
double <B>getDouble64</B>(int&nbsp;index)
                   throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getBytes(int, int)"><!-- --></A><H3>
getBytes</H3>
<PRE>
byte[] <B>getBytes</B>(int&nbsp;index,
                int&nbsp;count)
                throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getString(int, int)"><!-- --></A><H3>
getString</H3>
<PRE>
java.lang.String <B>getString</B>(int&nbsp;index,
                           int&nbsp;bytesRequested)
                           throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getString(int, int, java.lang.String)"><!-- --></A><H3>
getString</H3>
<PRE>
java.lang.String <B>getString</B>(int&nbsp;index,
                           int&nbsp;bytesRequested,
                           java.lang.String&nbsp;charset)
                           throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getNullTerminatedString(int, int)"><!-- --></A><H3>
getNullTerminatedString</H3>
<PRE>
java.lang.String <B>getNullTerminatedString</B>(int&nbsp;index,
                                         int&nbsp;maxLengthBytes)
                                         throws <A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></PRE>
<DL>
<DD>Creates a String from the _data buffer starting at the specified index,
 and ending where <code>byte=='\0'</code> or where <code>length==maxLength</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index within the buffer at which to start reading the string.<DD><CODE>maxLengthBytes</CODE> - The maximum number of bytes to read.  If a zero-byte is not reached within this limit,
                       reading will stop and the string will be truncated to this length.
<DT><B>Returns:</B><DD>The read string.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang">BufferBoundsException</A></CODE> - The buffer does not contain enough bytes to satisfy this request.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/BufferReader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<a href='http://www.drewnoakes.com/code/exif/' title='Go to the project home page.'><img src='http://metadata-extractor.googlecode.com/git/Resources/metadata-extractor-logo-131x30.png' border=0 alt='Metadata Extractor Logo'></a></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/drew/lang/BufferBoundsException.html" title="class in com.drew.lang"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/drew/lang/ByteArrayReader.html" title="class in com.drew.lang"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/drew/lang/BufferReader.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="BufferReader.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
<i>Copyright &#169; 2003-2012 Drew Noakes. All Rights Reserved.</i>
<script src='http://www.google-analytics.com/urchin.js' type='text/javascript'></script>
<script type='text/javascript'>
_uacct = 'UA-936661-1';
urchinTracker();
</script>
</BODY>
</HTML>
